package com.xiaoq.parking.entity;

import java.io.Serializable;

import org.mongodb.morphia.annotations.Entity;

import com.xiaoq.MongoEntity;
/**
 * 
 * @author Chasers created at 2019.03.18 15:50
 *
 */
@Entity(value="parking",noClassnameStored=true)
public class ParkingEntity extends MongoEntity implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String name; // 停车场名称
	private Double longitude;  // 经度
	private Double latitude;  // 维度
	private String sitesId; // 景区ID
	private String imgUrl;  // 景区名称
	private String memo; // 景区简介
	private String inoutFlag;  // 00 室内、10 室外
	private String price;  // 收费标准
	private Integer totalAmount; // 总车位数量
	private String address; // 停车场地址
	private double[] loc = new double[2];
	
	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Double getLongitude() {
		return longitude;
	}
	public void setLongitude(Double longitude) {
		this.longitude = longitude;
		if(longitude != null){
			loc[0] = longitude;
		}
	}
	public Double getLatitude() {
		return latitude;
	}
	public void setLatitude(Double latitude) {
		this.latitude = latitude;
		if(latitude != null){
			loc[1] = latitude;
		}
	}
	public double[] getLoc() {
		return loc;
	}
	
	public String getSitesId() {
		return sitesId;
	}
	public void setSitesId(String sitesId) {
		this.sitesId = sitesId;
	}
	public String getImgUrl() {
		return imgUrl;
	}
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getInoutFlag() {
		return inoutFlag;
	}
	public void setInoutFlag(String inoutFlag) {
		this.inoutFlag = inoutFlag;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public Integer getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(Integer totalAmount) {
		this.totalAmount = totalAmount;
	}
	
	

}
